package com.seeyon.apps.kk.manager.caigoudatasync;


import java.util.Date;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.seeyon.apps.kk.manager.BaseManager;

public abstract class CAbstractDataSyncManager extends BaseManager {
	private static final Log log = LogFactory.getLog(CAbstractDataSyncManager.class);
	
	public void startf() throws Exception {
		log.info("=======================开始同步===================="+new Date());
		this.beforeGrabData();
		this.sourceFindAndInsertSqlFtl();
		this.sourceFindAndContrastSqlFtl();//查询第三方数据对比待办 已办并触发流程
		this.sourceUpdate();//修改第三方数据状态为Z
		log.info("=======================结束同步===================="+new Date());
	}
	public abstract boolean beforeGrabData();
	public abstract boolean sourceFindAndInsertSqlFtl();
	public abstract boolean sourceFindAndContrastSqlFtl();
	public abstract boolean sourceUpdate();
}
